<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '标签输入框',
    prop: 'inputTag1',
    type: 'inputTag',
    onChange({ value, c, formData }) {
      console.log(value, c, formData)
    },
    rule: [{ required: true, trigger: 'blur' }]
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
